Closing tags with a /

Since Strict is a concept of HTML4/XHTML1, what about when FW outpus HTML5 or XHTML5?

#curious

Leif Halvard Silli
-----Original Melding-----
Fra: Walter Lee Davis
Sendt: 19.11.2013, 13:56
Til: email@hidden
Emne: Re: Closing tags with a /

Any single-ended tag will be closed with a / if you have set the page level to a Strict doctype. Otherwise, it will be that odd start-tag-only business that looks wrong.

Walter

On Nov 19, 2013, at 5:48 AM, Paul wrote:

A quick one - how do I close a tag generated by an Action with a / - e.g. <img … />?

myImg = tag.fwAdd(“img”,true);
gives me
<img …>


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

XHTML5 includes the trailing slash in single-ended tags.

Walter

On Nov 19, 2013, at 8:27 AM, Leif H. Silli wrote:

Since Strict is a concept of HTML4/XHTML1, what about when FW outpus HTML5 or XHTML5?

#curious

Leif Halvard Silli
-----Original Melding-----
Fra: Walter Lee Davis
Sendt: 19.11.2013, 13:56
Til: email@hidden
Emne: Re: Closing tags with a /

Any single-ended tag will be closed with a / if you have set the page level to a Strict doctype. Otherwise, it will be that odd start-tag-only business that looks wrong.

Walter

On Nov 19, 2013, at 5:48 AM, Paul wrote:

A quick one - how do I close a tag generated by an Action with a / - e.g. <img … />?

myImg = tag.fwAdd(“img”,true);
gives me
<img …>


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

But when using HTML5-output, then FW does not do ?

Leif H

Walter Lee Davis, Tue, 19 Nov 2013 08:46:48 -0500:

XHTML5 includes the trailing slash in single-ended tags.

Walter

On Nov 19, 2013, at 8:27 AM, Leif H. Silli wrote:

Since Strict is a concept of HTML4/XHTML1, what about when FW outpus
HTML5 or XHTML5?

#curious

Leif Halvard Silli
-----Original Melding-----
Fra: Walter Lee Davis
Sendt: 19.11.2013, 13:56
Til: email@hidden
Emne: Re: Closing tags with a /

Any single-ended tag will be closed with a / if you have set the
page level to a Strict doctype. Otherwise, it will be that odd
start-tag-only business that looks wrong.

Walter

On Nov 19, 2013, at 5:48 AM, Paul wrote:

A quick one - how do I close a tag generated by an Action with a /

  • e.g. <img … />?

myImg = tag.fwAdd(“img”,true);
gives me
<img …>


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I used ing as an example - I should have been more specific (sorry). I’m adding in SVG, and SVG only works if the e is a closing / in tags.

For example <circle … />

I get this in HTML5:

I need to force this closing />, rather than to rely on the HTML level doing the policing.

Right now, I am using FWAddRaw to bolt in what I need, but I much prefer to build my added tags into the tag stream.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Paul, Tue, 19 Nov 2013 10:53:07 -0500:

I used ing as an example - I should have been more specific (sorry).
I’m adding in SVG, and SVG only works if the e is a closing / in tags.

Why do you need that, for SVG? Within , then per the HTML5
spec, it is OK to do both and .

For example <circle … />

I get this in HTML5:

As long as you also get , this should be OK.

leif halvard silli


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Leif Halvard Silli, Tue, 19 Nov 2013 17:06:43 +0100:

Paul, Tue, 19 Nov 2013 10:53:07 -0500:

I used ing as an example - I should have been more specific (sorry).
I’m adding in SVG, and SVG only works if the e is a closing / in tags.

Why do you need that, for SVG? Within , then per the HTML5
spec, it is OK to do both and .

Let me add that this is because lives in its own
(name)space, within a HTML document. So it has different rules from the
elements of the HTML5 vocabulary. (But you may of course have other
reasons for wanting to use the /> syntax also in SVG.)

lh


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I was finding that things weren’t drawing without the closing / in the tag. Anyway, I’ve got it working how I need it too - just that the tag tree is not complete.

Also noting that Leif’s sag tags are playing havoc with this thread in Safari.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Paul, Thu, 28 Nov 2013 08:09:23 -0500:

Leif’s sag tags

Did you mean SVG tags?

LH


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes.

On 28 Nov 2013, 12:29 pm, Leif H. S. wrote:

Paul, Thu, 28 Nov 2013 08:09:23 -0500:

Leif’s sag tags

Did you mean SVG tags?

LH


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes. I saw that. I don’t have time today or tomorrow to fix that, but it’s an easy fix in FreewayTalk.net – just need to add some more named tags to the converter.

Walter

On Nov 28, 2013, at 8:09 AM, Paul wrote:

I was finding that things weren’t drawing without the closing / in the tag. Anyway, I’ve got it working how I need it too - just that the tag tree is not complete.

Also noting that Leif’s sag tags are playing havoc with this thread in Safari.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I just added the entire SVG vocabulary to the whitelist, so your SVG tags will appear correctly here.

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options