[ 
https://issues.apache.org/jira/browse/OFBIZ-2644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722966#action_12722966
 ] 

Ashish Nagar commented on OFBIZ-2644:
-------------------------------------

I did a test on this and found that using <div 
some-attribute="somevalue"></div> is correct than <div 
some-attribute="somevalue"/>

Here is how i found this, i created a div in two ways,
1) using <div id="test"></div>
2) using <div id="test"/>

Then i changed the innerHTML of this div through javascript function with some 
button as <input type="button" 
onclick="javascript:document.getElementById('test').innerHTML='Some text'">

I found that in first way, the innerHTML of the first div changed correctly, 
but in second way whole page content followed by the div lost and only 'Some 
text' is shown.

Thanks & Regards,
--
Ashish Nagar

> <div/> syntax is incorrect
> --------------------------
>
>                 Key: OFBIZ-2644
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2644
>             Project: OFBiz
>          Issue Type: Bug
>            Reporter: Harmeet Bedi
>            Priority: Trivial
>             Fix For: SVN trunk
>
>         Attachments: EditCategoryFeatureCats.ftl.diff
>
>
> use to be widespread earlier found this only in one spot in trunk. Attaching 
> patch.
> <div some-attribute="some-value"/> is incorrect syntax
> but 
> <div some-attribute="some-value"></div> is right

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to