What is the current thinking on closing tags. The documentation
I can find doesn’t mention needing a . When closing tags
started to be needed it sounded as though the requirement was strict.
Now the documentation says that even more closing tags can be omitted
than before XHTML raised its head.
I have always omitted tags, and the Safari Element Inspector
indicates that the browser has provided “Shadow Content” and an
tag. This still appears if I use <input . . . /> so Safari
doesn’t take that as an alternative.
I’m still trying to sort out my ‘onchange=“submit()”’ problem.
It could be that some loose syntax is making the browser lose context
and causing the “Uncaught TypeError: submit is not a function” error
in Epic.
David
offtopic mailing list
email@hidden
Update your subscriptions at:
Thanks Todd. Safari still claims to be adding its own shadow content and
closing tag, but if the trailing ‘/‘ format is what people are using
I’ll go with that.
The trailing slash is not required, at least not in HTML5. I often write
it with the slash purely out of habit (which I’m trying to break) but I
often see it written without.
Besides, I noticed that Safari strips it out in the Web Inspector.
Thanks Todd. Safari still claims to be adding its own shadow content
and closing tag, but if the trailing ‘/‘ format is what people are
using I’ll go with that.