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 22126 - [Custom]: Should <element> support declaring SVG elements?
Summary: [Custom]: Should <element> support declaring SVG elements?
Status: RESOLVED LATER
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 22941
  Show dependency treegraph
 
Reported: 2013-05-21 19:45 UTC by Dimitri Glazkov
Modified: 2013-10-07 16:30 UTC (History)
1 user (show)

See Also:


Attachments

Description Dimitri Glazkov 2013-05-21 19:45:34 UTC
"As designed now, declarations only provide a way to build elements in HTML namespace. Is this enough?"
Comment 1 Dominic Cooney 2013-05-22 03:40:26 UTC
Perhaps the spec could be simplified (removing mentions of extending SVGElement, prototype chain walking for that, removing mention of an unknown interface for XML elements, etc.)
Comment 2 Dominic Cooney 2013-05-29 05:33:23 UTC
FWIW here is an example of using type extensions with SVG, which seems to work fine and dandy:

<http://jsbin.com/elivaz/2/>

However Blink may not be spec compliant in some way that makes this possible while it is disallowed by the spec.

I think it is fine for SVG Custom Elements to always be type extensions. What would you draw, otherwise?
Comment 3 Dimitri Glazkov 2013-06-19 21:48:43 UTC
(In reply to comment #2)
> However Blink may not be spec compliant in some way that makes this possible
> while it is disallowed by the spec.

The question in the bug is much simpler: should declarative syntax support anything other than HTML namespace?
Comment 4 Dominic Cooney 2013-06-20 00:20:01 UTC
(In reply to comment #3)
> The question in the bug is much simpler: should declarative syntax support
> anything other than HTML namespace?

Yes.

An observation:

It doesn't make sense for SVG Custom Elements to be custom tags. They should be type extensions.

Therefore the "extends" attribute unambiguously indicates whether a custom element is an SVG element. (There's no overlap between SVG and HTML tag names, right?)
Comment 5 Dimitri Glazkov 2013-06-20 00:27:11 UTC
(In reply to comment #4)
 
> Therefore the "extends" attribute unambiguously indicates whether a custom
> element is an SVG element. (There's no overlap between SVG and HTML tag
> names, right?)

script and style, to name a few :-\
Comment 6 Dominic Cooney 2013-06-20 01:07:21 UTC
(In reply to comment #5)
> (In reply to comment #4)
>  
> > Therefore the "extends" attribute unambiguously indicates whether a custom
> > element is an SVG element. (There's no overlap between SVG and HTML tag
> > names, right?)
> 
> script and style, to name a few :-\

That sucks. Namespace attribute, which defaults to HTML's?
Comment 7 Dimitri Glazkov 2013-06-25 20:15:59 UTC
(In reply to comment #6)
> That sucks. Namespace attribute, which defaults to HTML's?

Let's tackle this later.