Closed GoogleCodeExporter closed 9 years ago
Thanks for the detailed info.
In HTML 4 numeric IDs aren't valid HTML; IDs are supposed to start with a
letter. As you probably know, HTML5 changes the rules, allowing other
characters to be used as an ID. However, this doesn't mean browser support is
up to snuff yet. The code you reference is IE's "addRule" method for adding
properties to a stylesheet. As you said yourself, "Basically it looks like the
addRule function is stricter about what a "valid" selector is. It wont' take
numeric ids and it didn't even work when I prefaced it with an underscore, e.g.
id="_1234"."
SWFObject is using IE's baked-in stylesheet support, which (not surprisingly)
doesn't support HTML5's lenient ID conventions. In short, this isn't a
SWFObject bug, it's a shortcoming in IE. However, we may be able to refactor
the code to avoid using addRule (thereby increasing SWFObject's compatibility
with HTML5), so I'll leave this issue open.
Original comment by platelu...@gmail.com
on 14 May 2011 at 4:33
Decided to merge with issue 343 since they're both addressing shortcomings with
selector support.
Original comment by platelu...@gmail.com
on 14 May 2011 at 8:06
Original issue reported on code.google.com by
marco.ro...@gmail.com
on 9 Dec 2010 at 7:45