Open Power Template 2.x family
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
FS#56 - "opt:on" outputs always the closing tag
Attached to Project:
Open Power Template
Opened by Skruppy (Skrupellos) - Sunday, 22 February 2009, 07:37 GMT-8
Last edited by Zyx (Zyx) - Sunday, 22 February 2009, 23:44 GMT-8
Opened by Skruppy (Skrupellos) - Sunday, 22 February 2009, 07:37 GMT-8
Last edited by Zyx (Zyx) - Sunday, 22 February 2009, 23:44 GMT-8
|
DetailsEXAMPLE:
----- template ----- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <opt:root> <div opt:on="false">Where is the bug?</div> </opt:root> ----- END template ----- RESULT: The expression in opt:on is false, so there should be no div tag. Actually there is only the opening tag hidden. The closing tag remains in the output. This generates an invalid XHTML output. See the following output: ----- code ----- Where is the bug?</div> ----- END code ----- EXPECTED: An output without the closing tag :-) ----- code ----- Where is the bug? ----- END code ----- SOLUTION: In Opt/Instruction/If.php on line 80 replace "Opt_Xml_Buffer::TAG_CLOSING_BEFORE" with "Opt_Xml_Buffer::TAG_CLOSING_AFTER". ----- code: If.php on line 80 ----- $node->addAfter(Opt_Xml_Buffer::TAG_CLOSING_AFTER, ' } '); ----- END code ----- |
This task depends upon
Closed by Zyx (Zyx)
Sunday, 22 February 2009, 23:44 GMT-8
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 59.
Sunday, 22 February 2009, 23:44 GMT-8
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 59.