Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
HTML5 output for feed link tag
Now we have a preference option for HTML5 I was thinking that the <txp:feed link />
tag ought to output HTML5 code which would mean no closing slash (/). I think I’m right on that one particularly in the “head” of the page. I know it’s not critical at the moment and won’t crash any site, plus I could just hand-code it, but in the future…
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: HTML5 output for feed link tag
The self-closing tag is still valid in HTML5 (it’s just optional now) so it might be easier (and maybe slightly better performance-wise) to just leave it as-is.
For code purists though (myself included), you’re quite right.
Offline
Re: HTML5 output for feed link tag
Thanks Phil. Hand coding it is then. ;)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: HTML5 output for feed link tag
Without wishing to be that guy, isn’t the HTML5 spec still at draft stage?
Offline
Re: HTML5 output for feed link tag
Also, welcome back Stuart – you might want to scrub the ProTextThemes link from your footer as it’s no longer working and up for sale at Sedo.
Offline
Re: HTML5 output for feed link tag
gaekwad wrote #278766:
Without wishing to be that guy, isn’t the HTML5 spec still at draft stage?
Yeah, last I heard the W3C pencilled it in to become a standard in 2074. There’s some quality thinking to be thunk until then.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: HTML5 output for feed link tag
gaekwad wrote #278766:
Without wishing to be that guy, isn’t the HTML5 spec still at draft stage?
Yes and no.
Yes. Technically it’s in the so called draft stage.
No. Practically all browsers are supporting the core features (and some subsets) and the markup. So it’s usable.
Because of that it’s often called »living standard«.
Btw.: I myself won’t drop the closing slash. The XML-style of the markup enhances the readability of the code.
Last edited by trenc (2014-02-16 11:50:23)
Digital nomad, sailing the world on a sailboat: 32fthome.com
Offline
Re: HTML5 output for feed link tag
trenc wrote #278976:
Btw.: I myself won’t drop the closing slash. The XML-style of the markup enhances the readability of the code.
I’m much of the same opinion. It is helpful to see that tags have been closed; it greatly improves the readability of the code. I was disappointed when it was decided that the closing slash would be optional. It sends out mixed messages.
Offline
Re: HTML5 output for feed link tag
+1 for keeping the closing slash.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: HTML5 output for feed link tag
echoing the previous sentiments on the closing slash.
Last edited by maverick (2014-02-17 01:03:59)
Offline
Re: HTML5 output for feed link tag
Perhaps a workaround to this might be to have an option to output single tags with or without closing tags, and do it with a plugin.
Making a sweeping generalisation, a large chunk of people using Textpattern won’t give a rat’s tuckus whether there are closing tags or not – but those that do will be able to install a plugin, tick a box, choose from a drop-down, whatever.
Offline
Pages: 1