I am writing a validator for \"visual correctness\" of html files. The goal is to detect too wide elements.
Here is a demo of my problem.
The do
The element itself is constrained to 200px, but the text inside spills out. If you insert a span (or any other inline element) inside the P tag it works fine.
http://jsfiddle.net/will/vv68y/5/
Hope that helps :)