Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

nesting quotes in tag attributes

 
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
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic