Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed basic XHTML problems. #801

Merged
merged 2 commits into from
Jul 13, 2012
Merged

Fixed basic XHTML problems. #801

merged 2 commits into from
Jul 13, 2012

Conversation

lars-sh
Copy link

@lars-sh lars-sh commented Jul 12, 2012

On strict XHTML sites that are even responding with the http content-type header for valid xhtml files Leaflet was broken in 0.3.1 and also in 0.4.

In order to fix basic usage (tested: OSM, Marker, Popup and Polyline) the VML detection need to be made "secure" and all of those html entities need to be replaced.

I guess this request could be interesting for a lot more people.

PS: For simplier testing, just rename your html files to xhtml files and test them.

@danzel
Copy link
Member

danzel commented Jul 13, 2012

Looks good.
Please update your pull to have just your changes without a rebuilt leaflet, makes merging easier

@mourner
Copy link
Member

mourner commented Jul 13, 2012

@lars-sh nice catch with VML!
BTW, why did you rename the HTML entities like mdash and times to number code? Are they not valid in XHTML too?

@lars-sh
Copy link
Author

lars-sh commented Jul 13, 2012

@danzel Done.

@mourner XHTML 1.0 and 1.1 allow them, but XHTML5 does not define own entities. That means XHTML5 documents using entities other than the five XML-defined ones (&, <, > " and ') should (and will) be considered as wrong (as long as no DTD is specified).

For more information:

mourner added a commit that referenced this pull request Jul 13, 2012
Fixed basic XHTML problems.
@mourner mourner merged commit c89f363 into Leaflet:master Jul 13, 2012
@mourner
Copy link
Member

mourner commented Jul 13, 2012

I see, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants