This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/ Multipage: http://www.whatwg.org/C#syntax-text Complete: http://www.whatwg.org/c#syntax-text Comment: What is "text"? Can an author use a U+0000 character in text? Posted from: 101.128.184.179 User agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19
This bug was cloned to create bug 18143 as part of operation convergence.
Syntactically, yes, there's no constraint on Text itself. Where the syntactic construct "Text" is used, there are additional constraints (e.g. no "<" in Text used inside normal elements). But more importantly, a syntactic "Element" is restricted by this statement: # Elements must not contain content that their content model disallows. This thus invokes all the content model rules, and the elements that are allowed to contain Text _nodes_ have their own restrictions, in particular: # Text nodes [...] must not contain U+0000 characters [...]