It is currently Sat Dec 02, 2017 4:10 pm Advanced search
myNewHtml5Element {
display: block;
}
Le Sage wrote:
Well, padding works for me, as background-color or other text-style changing. Width doesn't seem to be applied, but if is fixed if you apply ain it (I guess elements are in-line by default, correct me if I'm wrong).
- Code: Select all
myNewHtml5Element {
display: block;
}
So once again I'm pretty sure you can do anything you want. Can you specify what you exactly can't do?
[ADD] by the way, it works for Firefox 3 (probably Firefox 2 too), Opera 9.5 (probably earlier versions too), but not IE7 (forcing the stylesheet to be applied which could easily be fixed with wise JavaScript, so this solution can according to me be deployed).
<script>document.createElement('nav');</script>
Well it's an experiment so I'm not sure how much of a "real-life" example it is...Le Sage wrote:An example of real-life HTML 5 by Simon Pieters (zcorpan) : W3C home in HTML 5.
Done. (Note that the actual w3.org home page still has this error.)Le Sage wrote:almost validates (might have to replace en-uk by en-GB).
Le Sage wrote:A little bit of JavaScript can always fix that (very easy to force a stylesheet to be applied with a JavaScript engine such as jQuery ; there might even be some scripts that already could parse CSS & apply it), so I guess that's not really a bug problem.
zcorpan wrote:To make the new elements stylable in IE, you just dobefore you use any of the new elements (e.g. in HEAD), and then the behavior of the parser magically changes. (credit)
- Code: Select all
<script>document.createElement('nav');</script>
zcorpan wrote:and then the behavior of the parser magically changes
zcorpan wrote:(Note that the actual w3.org home page still has this error.)
OmegaJunior wrote:Unfortunately that leaves out all those whose company decided Javascript in Internet Explorer a security risk and thus off limits. Any way to force this browser into behaving nicely without javascript?
whatwg@whatwg.org works.Le Sage wrote:By the way, is there any place I could submit a request for a user prefered language detection in JavaScript (DOM)? Maybe on this forum? Maybe on a W3C mail list?
I can't remember it being discussed, but perhaps it was before I joined the WHATWG. The spec has this section:Le Sage wrote:Maybe (probably) this issue has already been discussed?
zcorpan wrote:To make the new elements stylable in IE, you just dobefore you use any of the new elements (e.g. in HEAD), and then the behavior of the parser magically changes. (credit)
- Code: Select all
<script>document.createElement('nav');</script>
Users browsing this forum: No registered users and 0 guests