This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21249 - In the second example: "Three Text nodes". Shouldn't it actually be two, since the Script element presumably doesn't count as a text node?
Summary: In the second example: "Three Text nodes". Shouldn't it actually be two, sin...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-11 16:12 UTC by contributor
Modified: 2013-04-12 23:34 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2013-03-11 16:12:20 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html
Multipage: http://www.whatwg.org/C#tree-construction
Complete: http://www.whatwg.org/c#tree-construction

Comment:
In the second example: "Three Text nodes".  Shouldn't it actually be two,
since the Script element presumably doesn't count as a text node?

Posted from: 76.119.210.197
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22
Comment 1 Ian 'Hixie' Hickson 2013-04-12 23:34:57 UTC
The contents of the <script> element form a Text node. The text immediately following "Three Text nodes" explains this. :-)