• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

nesting quotes in tag attributes

 
JohnWilliam Fitz
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

Are there a set of concrete rules (i.e. in the specifications or somewhere) for when tag attributes allowed to nest double quotes within double quotes?

For example, this does *NOT* work...

<c:if test="${userType eq "member"}" >

...I must change either the outer or the inner set of quotes to single quotes for it to work. In other words, no nesting of double quotes is allowed.

However, this DOES work...

<p508 508 twentythree="<%= "skidoo" %>" />

...nesting of double quotes IS allowed here.

So, what are the rules? It doesn't seem to me that the tag author has any control over it. So it must be a container specification, right?

Thanks!
John
 
JohnWilliam Fitz
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
post-posting note: the smiley that shows up in the second tag in my posting should be a colon, not a smiley

and who was it who decided mandatory smiley casting was a good thing?
 
JohnWilliam Fitz
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
post-post-posting note: actually the smiley should be a colon followed by a p
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic