othree / html5.vim

HTML5 omnicomplete and syntax
http://www.vim.org/scripts/script.php?script_id=3236
934 stars 76 forks source link

xml/html5.vim should include proper xmlns values #10

Closed lilyball closed 13 years ago

lilyball commented 13 years ago

The HTML5 DOCTYPE applies to XHTML as well now, so the xml/html5.vim file should provide basic support for xmlns. Right now it declares xmlns but gives it no value. It should give it the value 'http://www.w3.org/1999/xhtml'. I'd also like to add the basic namespaces for svg, xlink, and mathml, which are 'http://www.w3.org/2000/svg', 'http://www.w3.org/1999/xlink', and 'http://www.w3.org/1998/Math/MathML' respectively.

othree commented 13 years ago

Hi, sorry for reply so late. It's easy to add this value, but I'm not sure how to decide which should add.

othree commented 13 years ago

I never use 'http://www.w3.org/1999/xlink'. So I didn't add it.

lilyball commented 13 years ago

Do you never use SVG then? Because the xlink namespace is used quite frequently with SVG.

othree commented 13 years ago

That sounds reasonable for me, so I have added it.