[svgwg] Support HTML metadata elements in both HTML and SVG namespaces?

BigBadaboom has just created a new issue for https://github.com/w3c/svgwg:

== Support HTML metadata elements in both HTML and SVG namespaces? ==
https://svgwg.org/svg2-draft/single-page.html#struct-HTMLMetadataElements

This section states that browsers should support  `<base>`, `<link>`, `<meta>`, `<style>`, and `<script>` inside SVG if they have the HTML namespace.

Since `<style>`, and `<script>` are also supported in the SVG namespace, is there a good reason why browsers shouldn't be required to allow either namespace for the other three?

The following works in most, if not all browsers:

```
<svg xmlns:html="http://www.w3.org/1999/xhtml">
  <html:link rel="stylesheet" href="test_css_external01_bad.css" media="print"/>
```

But it seems a bit "mean" to not allow users to link to a stylesheet with a plain SVG-namespaced `<link>`.   I know there are two other ways to link stylesheets, but they are somewhat esoteric. Certainly not as familiar to people as `<link>`.



Please view or discuss this issue at https://github.com/w3c/svgwg/issues/388 using your GitHub account

Received on Thursday, 15 February 2018 22:22:46 UTC