rezakho / ganon

Automatically exported from code.google.com/p/ganon
0 stars 0 forks source link

Attribute's quotation type is not preserved #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What will reproduce the problem?

<tag attr="value">
<tag attr='value'>

both get output as:

<tag attr="value">

when reconstructing the HTML.

What is the expected output? What do you see instead?

Expected output is to preserve the type of quotes used, single ' or double ". 
This is important with inline/embedded javascript in attributes.

Which version are you using?

Ganon single file PHP5 (rev. #78)

Please provide any additional information below.

Original issue reported on code.google.com by t...@wayoff.dk on 19 Mar 2013 at 6:56

GoogleCodeExporter commented 8 years ago
Very good point, thanks for reporting!
For now, I'll let Ganon choose between " and ' by checking whether one of the 
two is already present. Perhaps a future feature could be to remember the 
quotation type.

Original comment by niels....@gmail.com on 7 Apr 2013 at 3:52