Re: custom elements without the dash
It's already mentioned in that Twitter thread. If somebody created dialog we could then never standardize an element using that name. Sure, but that's not a possibility that has any immediate effect upon a developer, as I said I suggest the consequences of doing so need to be better articulated (in the spec?). -- Regards SteveF HTML 5.1 http://www.w3.org/html/wg/drafts/html/master/ On 5 January 2015 at 13:51, Anne van Kesteren ann...@annevk.nl wrote: On Mon, Jan 5, 2015 at 2:42 PM, Steve Faulkner faulkner.st...@gmail.com wrote: Why force hyphen in custom elements? It's already mentioned in that Twitter thread. If somebody created dialog we could then never standardize an element using that name. -- https://annevankesteren.nl/
Re: custom elements without the dash
On 5.1.2015 14:42, Steve Faulkner wrote: Suggest the reasons for not doing so need to be better articulated. Since there are no namespaces (in XML sense) in HTML language prefixes are used instead as a mechanism to prevent clash with future standardized element names. Jirka -- -- Jirka Kosek e-mail: ji...@kosek.cz http://xmlguru.cz -- Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing -- OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep. -- Bringing you XML Prague conferencehttp://xmlprague.cz -- signature.asc Description: OpenPGP digital signature
Re: custom elements without the dash
On 5 January 2015 at 13:59, Jirka Kosek ji...@kosek.cz wrote: Since there are no namespaces (in XML sense) in HTML language prefixes are used instead as a mechanism to prevent clash with future standardized element names. I understand why, its the zillions of developers out there who don't or don't care, either they are given good reasons not to do it in language they understand and is meaningful to them or they ignore requirement and it becomes useless. -- Regards SteveF
Re: custom elements without the dash
On Mon, Jan 5, 2015 at 3:03 PM, Steve Faulkner faulkner.st...@gmail.com wrote: I understand why, its the zillions of developers out there who don't or don't care, either they are given good reasons not to do it in language they understand and is meaningful to them or they ignore requirement and it becomes useless. If they ignore the requirement they don't get custom elements... -- https://annevankesteren.nl/
Re: custom elements without the dash
yeah, it was just explained to me by Mike Smith: standard custom-elements APIs is that the API doesn’t allow them register custom elements without a dash which I did not know :-) -- Regards SteveF HTML 5.1 http://www.w3.org/html/wg/drafts/html/master/ On 5 January 2015 at 14:10, Anne van Kesteren ann...@annevk.nl wrote: On Mon, Jan 5, 2015 at 3:03 PM, Steve Faulkner faulkner.st...@gmail.com wrote: I understand why, its the zillions of developers out there who don't or don't care, either they are given good reasons not to do it in language they understand and is meaningful to them or they ignore requirement and it becomes useless. If they ignore the requirement they don't get custom elements... -- https://annevankesteren.nl/
custom elements without the dash
brought up on a twitter thread https://twitter.com/johnslegers/status/552064145399767040 Why force hyphen in custom elements? See alternative approach at http:// mdo.github.io/mdoml/ http://t.co/V73nupEc8E and https:// github.com/mdo/mdoml/issues/7 … https://t.co/kJGNmaBOp7. NOTE I am not advocating this approach. There is no apparent downside for a developer if they do dropdown instead of x-dropdown claimed issues with use of dash: (1) causes bloat, (2) reduces readability (3) reduces flexibility As there is no perceived negative effect for the developer when using non dash custom elements (other than opprobrium from the standards overlords) Suggest the reasons for not doing so need to be better articulated. -- Regards SteveF
Re: custom elements without the dash
On Mon, Jan 5, 2015 at 2:42 PM, Steve Faulkner faulkner.st...@gmail.com wrote: Why force hyphen in custom elements? It's already mentioned in that Twitter thread. If somebody created dialog we could then never standardize an element using that name. -- https://annevankesteren.nl/