Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-02-10 16:11:19

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#2 2014-02-10 17:31:45

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

#3 2014-02-10 17:36:44

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#4 2014-02-10 18:24:06

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,259
GitHub

Re: HTML5 output for feed link tag

Without wishing to be that guy, isn’t the HTML5 spec still at draft stage?

Offline

#5 2014-02-10 18:48:47

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,259
GitHub

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

#6 2014-02-10 20:55:05

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,446
Website GitHub

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

#7 2014-02-16 11:49:50

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

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

#8 2014-02-16 12:00:23

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

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

#9 2014-02-16 12:39:14

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

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

#10 2014-02-17 01:03:34

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

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

#11 2014-02-17 10:44:35

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,259
GitHub

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

Board footer

Powered by FluxBB