Replies

Jan 27, 2013 13 years ago
Foghawk
is a survivor
User Avatar

The pet description page (http://subeta.net/pet.php?act=desc&petid=etcetera), presumably in some sort of attempt to sanitize HTML, behaves rather oddly when faced with unpaired angle brackets; they are run into the nearest tags. To wit:

text1 > text2

is rendered in source as "
text2
", and displays only "text2". "<" in place of ">" yields "
text1
" and "text1".

"&lt;" and "&gt;" become "<" and ">" in the source and cause the same display issues. "&;" and "&;" are unchanged in source. This means that they do display properly in page text (although when the form is reloaded they become merely "<" and ">", making it necessary to retype them every time an edit is made)... but they do not work correctly in CSS.

">" is an important CSS3 selector; currently it is totally unusable. ">" deletes everything between it and the opening <style> tag, making a hash of things; "&;" is a syntax error.

Rendering user-generated HTML is a fussy business, I know. But can anything be done—a sanitizing exception made between <style> tags, perhaps—so that I can write clean code in pet descriptions, as I can in CustomCSS?

I apologize if this is a known issue, but the forum search is broken.

I play irregularly, so it may take me a while to get back to you

Mar 19, 2013 13 years ago
Reya
has ALL of the beanbags!
User Avatar

Are you still experiencing issues with this?

Mar 24, 2013 13 years ago
Foghawk
is a survivor
User Avatar

Yes.

I play irregularly, so it may take me a while to get back to you

Please log in to reply to this topic.