Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
Home > News > Telecoms

May 12th, 2010, 10:46 GMT · By

IE Mobile in WP 7 Sports JavaScript and CSS Enhancements

SHARE:

Adjust text size:


IE Mobile for Windows Phone 7 to boast JavaScript and CSS enhancements
Enlarge picture
Redmond-based software giant Microsoft has a lot of enhancements in store for its upcoming Windows Phone 7 operating system, and some of them are expected to affect the experience offered to users by the Internet Explorer Mobile included in the platform. Among them, the company notes a series of JavaScript and CSS enhancements, which originally included support for the -webkit-text-size-adjust CSS selector, as well as for -ms-text-size-adjust, but which lost the -webkit prefix in the process.

Originally designed with support for both the -ms- and -webkit- prefixes, the development team decided quite fast that only the former will remain in the mix. It seems that the plan to include support for -webkit-text-size-adjust in IE Mobile browser for Windows Phone 7 created quite a buzz when announced only two days ago, and on Tuesday the team decided to drop this plan.

“Our original intent in adding support for this WebKit-specific property was to make Web developers’ lives a bit easier by not having to add yet another vendor-prefixed CSS property to their pages to control how text was scaled. Even more specifically, we intuited that the most common use case for this property was to explicitly set it to “none” in order to tell the browser not to scale a particular section of text,” a recent post on the IE for Windows Phone Team blog reads.

The property would have allowed for one to prevent the browser from scaling the text when a page displayed a picture with associated caption, causing the text to remain on a single line. However, based on community feedback, coupled with the implications of implementing other browser vendors’ CSS properties, the development team decided to leave this plan aside, and to have only the -ms- prefixed version implemented.

In case there are some interested in the new scripting functions in IE Mobile for Windows Phone 7, here's what the development team lists:
- getElementsByClassName(name): given the class specified by name, returns all of the elements or sub-elements within the scope of this function call
- querySelector(selector): given the selector, returns the first element within the sub-tree of the scope of this function call that matches the selector
- querySelectorAll(selector): given the selector, returns all elements within the sub-tree of the scope of this function call that match the selector.

TELL US WHAT YOU THINK:

2,048 hits · 1 comment · Link to this article · Print article · Send to friend · Subscribe to news

MUST-READ RELATED ARTICLES:


Microsoft Updates Bing App for Windows Phones

Windows Phone 7 Nears Final Release, Screenshots Emerge

Opera Mobile 10 Now Available for Maemo

ZTE Plans Windows Phone 7 and Android Devices

Smartphone Market Goes Up 56.7% YOY in Q1, IDC States

READER COMMENTS:


Comment #1 by: JavaScript Countdown Timer on 25 May 2010, 16:37 UTC reply to this comment

that's all cool & helpful news to hear, thank you very much for sharing.

Copyright © 2001-2012 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM