-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Home
JohnAlbin edited this page Feb 14, 2012
·
9 revisions
##v3.3
complete refactoring by jdalton
- huge performance improvement on createElement (more than 10 times faster compared to 3.2)
- improved inline documentation
- fixed issue with vml elements
- small performance improvement for createElement (1.6 times faster compared to 3.0)
Complete rewrite by jonathantneal
- print iframe fix
- includes normalized styles for unknown elements
- fixes createElement/createDocumentFragement for unknown elements
here is the list of fixed issues and made changes. I have also added a list of known issues (The first one is really critical, but needs a lot work...).
- print error on second print/print preview
- allow styling through body id (i.e.:
body#some-id article
) - wrong selector parsing in IE8 (subbug:
@media print { }
blocks inmedia=all
stylesheets are ignored, but fixed a lot more than just that) - alternate/disabled stylesheets aren't parsed (can solve problems with mediaqueries polyfills/styleswitchers)
- styles with multiple media declaration or mediaqueries (i.e.:
media="screen, projection"
,media="only screen..."
) are not used as print styles (unless, they have print or all medium) (this also fixes a lot of slowness and crashes) - reset default media type to
"all"
, with every new stylesheet (fixes errors, if a stylesheet had no media attribute, but the previous had a non-print media-attribute)
- iepp.html5elements: override shimed html5elements (developer can add additional html5elements or reduce the elements)
- iepp.disablePP: disables print protection without disabling standard shiv (in case, print protection causes too much trouble, it's still a big hack)
- simple testsuite
- [unofficial] API (created for testing, but can be used for monkey patching)
-
@media screen {}
blocks in media all are treated as print-styles (This would need a big rewrite) - selector order (Currently, this seems "by design", but should be changed. Also needs a big rewrite)
- change of selector specificity (
.iepp_article <-> article
) (Currently this seems "by design", but for IE7 and IE8, it can be changed to[data-iepp-elem="article"]
<->article
)
Before someone is looking into the first two known issues, we should create good performance tests. Fixing last issue only makes sense, if we also fix the selector order...
cheers alex