Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is this an empty Tag  RSS feed

 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Buddies,

We know

1)<x:foo>
2)<x:foo></x:foo>

are empty tags

Then the following too should obviously be an empty tag
<x:foo><%-- This is an empty element --%></x:foo>

Am I correct?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<x:foo> is not an empty tag.

And no, a tag containing a comment is not empty.
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Bear,

It was intended to be <x:foo/>javascript: x()
Smile

Thanks a lot again
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!