7
edits
Jeffschiller (talk | contribs) m (Added link back to SVG:Home_Page) |
ChrisLilley (talk | contribs) (→use namespace-aware methods in javascript: clarification on qualified attributes) |
||
| Line 33: | Line 33: | ||
*... | *... | ||
svg elements are in the svg namespace. svg attributes are in the null namespace. | svg elements are in the svg namespace. Unqualified svg attributes are in the null namespace. Qualified attributes are in whatever namespace their prefix id declared as - so for example xlink:href is in the XLink namespace, http://www.w3.org/1999/xlink. | ||
For example, to dynamically create an <image> element, do it like this: | |||
const svgns="http://www.w3.org/2000/svg"; | const svgns="http://www.w3.org/2000/svg"; | ||
edits