|
Posted by plucked duck on November 7, 2007, 2:19 am
Please log in for more thread options
Can I insert Javascript code into ISO / IEC 15445:2000 (ISO HTML) document ?
W3C validator seems not recognizing the tag <script>.
Hi
|
|
Posted by David Dorward on November 7, 2007, 4:57 am
Please log in for more thread options
> Can I insert Javascript code into ISO / IEC 15445:2000 (ISO HTML) document ?
>
> W3C validator seems not recognizing the tag <script>.
https://www.cs.tcd.ie/15445/15445.html describes ISO HTML. The scope
doesn't extend to section 18 of HTML 4.01 (which defines the script
element), and the script element isn't mentioned in the DTD ... so no,
you can't.
--
David Dorward
http://dorward.me.uk/ http://blog.dorward.me.uk/
|
|
Posted by André Gillibert on November 10, 2007, 11:27 am
Please log in for more thread options plucked duck wrote:
> Can I insert Javascript code into ISO / IEC 15445:2000 (ISO HTML)
> document ?
> W3C validator seems not recognizing the tag <script>.
Did you read the specs?
If you didn't, you've little^H^H^H^H^H^Hno chance of writing conforming
code.
For example, rules of heading placement and semantics are very strict
(but, are the only sensible ones): You cannot put a hN element inside a
DIV. You must put it as a direct child of BODY. Moreover, you mustn't jump
from a hN element to a h(N-x) element where x>1.
You should use the pre-HTML document type to write and validate your
documents, and then convert your documents to ISO-HTML.
--
If you've a question that doesn't belong to Usenet, contact me at
|
|
Posted by Beauregard T. Shagnasty on November 10, 2007, 1:28 pm
Please log in for more thread options André Gillibert wrote:
> .. You cannot put a hN element inside a DIV. You must put it as a
> direct child of BODY.
Do you want to explain why you think that? I have numerous <h1>
elements inside a "content" div, and the pages validate, and display
just fine.
> Moreover, you mustn't jump from a hN element to a h(N-x) element where
> x>1.
Huh?
<div id="content">
<h1>Page's Main Title</h1>
<h2>Sub-Title One</h2>
<p>Paragraph about Sub-Title One</p>
<h2>Sub-Title Two</h2>
<p>Paragraph about Sub-Title Two</p>
<h3>And a Sub-Sub-Title about Two</h3>
<p>Another paragraph about Sub-Sub-Title Two</p>
<h2>Sub-Title Three</h2>
...etc etc
</div>
--
-bts
-Motorcycles defy gravity; cars just suck
|
|
Posted by Beauregard T. Shagnasty on November 10, 2007, 2:23 pm
Please log in for more thread options Beauregard T. Shagnasty replied to hisself:
> ..I have numerous <h1> elements inside a "content" div,
To clarify, one <h1> per page, of course, but many pages with an <h1>
inside a content <div>. (Just in case that wasn't clear. <g>)
--
-bts
-Motorcycles defy gravity; cars just suck
|
| Similar Threads | Posted | | Certification in HTML/CSS/Javascript | September 7, 2006, 2:18 pm |
| HTML or Javascript or PHP solution: Textarea with Dynamic Width | July 16, 2004, 5:01 pm |
| FREE Tutorials on HTML XHTML CSS JavaScript XML XSL ASP SQL ADO VBScript, SAP - ABAP and more... | May 27, 2008, 10:52 pm |
| AjaxToday.com (AJAX DHTML CSS Javascript HTML developer community) Launched! | March 23, 2006, 7:08 pm |
| A Web Development QUICK LINK PAGE (QLP) - HTML, Perl, PHP, JavaScript, AJAX, CGI, etc. | May 1, 2007, 8:02 pm |
| Bug in IE with utf-8 and JavaScript | April 11, 2006, 5:26 am |
| How to do the same without javascript ? | May 21, 2007, 5:33 am |
| Javascript IP Mailer | August 19, 2004, 4:27 pm |
| problems with JavaScript | February 10, 2005, 5:32 pm |
| Do viewers have JavaScript? | March 7, 2005, 9:49 am |
|