Closed neilhwatson closed 7 years ago
The HTML is run through parsers multiple times, and then edited as a data structure, and then written back out. I believe that all those times are mostly due to plugins, but one time is especially due to URL rewriting. Is it important that the result be exactly equivalent to the input? If so, I can try to find some ways to make that achievable (by not processing things unnecessarily, for example, and listing which plugins will parse/rewrite your markup).
Good point. The html gets read by some java script that builds gallery page. I think that makes this a bug in there instead of here.
Yeah... I'd be very concerned about that JavaScript, since JS has direct access to an already-parsed DOM tree... The other problem is that I think there's actually no way to avoid at least one parsing/rerendering step, even if the base URL of your site is /
... That might be a performance improvement to think about down the line...
But if the JS can't do an image gallery that well, you could write a Statocles app that did it instead ;)
But, since it seems like this isn't (yet) a problem in Statocles, I'll close this for now.
Consider this code:
The output from the say command on the console is:
This is expected, but the html source produced in the static files is this:
Caption and href are reversed.