Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jws
on Feb 10, 2010
|
parent
|
context
|
favorite
| on:
XHP: A New Way to Write PHP (from Facebook)
The HTML tag closing rules specify they only get closed when they have to be. So neither of your solutions is correct. It is:
<div>foo<a>bar<span>baz box</span></a></div>
_iie2
on Feb 10, 2010
[–]
my solution was to merely demonstrate the difference between what a programmer writes and what gets sent as an http response.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
<div>foo<a>bar<span>baz box</span></a></div>