[Bug 12449] New: The definition of the IDL attribute text is misleading, since the syntax allows only text inside a title element. The attribute should be defined as a synonym for innerText (for this element). Existing browsers treat markup inside title element as charact

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12449

           Summary: The definition of the IDL attribute text is
                    misleading, since the syntax allows only text inside a
                    title element. The attribute should be defined as a
                    synonym for innerText (for this element). Existing
                    browsers treat markup inside title element as charact
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#the
                    -title-element-0
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#the-title-element-0

Comment:
The definition of the IDL attribute text is misleading, since the syntax
allows only text inside a title element. The attribute should be defined as a
synonym for innerText (for this element). Existing browsers treat markup
inside title element as character data, displaying it literally in contexts
where the title element content is used, and this is also reflected in their
implementations of the text and innerText IDL attributes for this element.
Thus, the current wording requires error processing different from the current
one and may break existing software, for no acceptable reason. Authors who
wish to process title elements that may be syntactically invalid should be
encouraged to use the innerHTML property rather than the text property.

Posted from: 88.114.29.18
User agent: Mozilla/5.0 (Windows NT 6.0; rv:2.0) Gecko/20100101 Firefox/4.0

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 8 April 2011 07:47:48 UTC