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 9971 - The XLink namespace is suggested to be declared on <html>
Summary: The XLink namespace is suggested to be declared on <html>
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML/XHTML Compat. Authoring Guide (ed: Eliot Graff) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Eliot Graff
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/html-xhtml-au...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-21 08:03 UTC by Henri Sivonen
Modified: 2010-10-05 13:07 UTC (History)
4 users (show)

See Also:


Attachments

Description Henri Sivonen 2010-06-21 08:03:26 UTC
"The xlink prefix is defined as xmlns:xlink="http://www.w3.org/1999/xlink"  before using xlink:href. The prefix can be defined either:

    * Once on the root <html> element.
    * Once on each <svg> element that contains one or more elements with xlink:href attributes."

Please remove "Once on the root <html> element." and say instead that the XLink namespace must be declared on the SVG or MathML element using an attribute in the xlink namespace or on any of its SVG or MathML ancestors.

Having an attribute xmlns:link on an HTML element is an error in text/html and parses into a no-namespace attribute--not into a namespace declaration.
Comment 1 Eliot Graff 2010-07-10 00:09:21 UTC
Edited spec per these requests. The Namespaces section now reads:

 The following rules apply to namespaces used in polyglot markup.

    * The <html> element uses the namespace declaration xmlns="http://www.w3.org/1999/xhtml".
    * All <math> elements uses the namespace declaration xmlns="http://www.w3.org/1998/Math/MathML".
    * All <svg> elements uses the namespace declaration xmlns="http://www.w3.org/2000/svg".
    * The xlink prefix is defined as xmlns:xlink="http://www.w3.org/1999/xlink" before using xlink:href. The prefix must be declared on an SVG or MathML element by using an attribute in the xlink namespace or on any of its SVG or MathML ancestors.
    * No other elements should have namespace declarations.
Comment 2 Eliot Graff 2010-07-10 00:09:42 UTC
Thanks for the feedback!