Skip to content

trimwhitespace filter breaks <body> tag #98

@ildar-aim

Description

@ildar-aim

CURRENT html output

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional
.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Image selection</title> </head> <body
> <iframe src="image_selection.php?type=P&amp;id=17551&amp;imgid=edit_product_image" height="300" width
="500" frameborder="0" scrolling="no" id="image_selection_iframe"></iframe> </body> </html>

EXPECTED html output

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional .dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Image selection</title> </head> <body> <iframe src="image_selection.php?type=P&amp;id=17551&amp;imgid=edit_product_image" height="300" width ="500" frameborder="0" scrolling="no" id="image_selection_iframe"></iframe> </body> </html>
As you can see there is a newline symbol after '<body'     and  '>'

Template to display

{*
$Id$
vim: set ts=2 sw=2 sts=2 et:
*}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>{$lng.lbl_image_selection}</title>
</head>
<body>
<!-- MAIN -->
<iframe src="image_selection.php?type={$type}&amp;id={$id}&amp;imgid={$imgid}" height="300" width="500" frameborder="0" scrolling="no" id="image_selection_iframe"></iframe>
<!-- /MAIN -->
</body>
</html>

Firefox/Chrome does not call iframe source in case broken body tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions