fixed style disapearing when adding a char + added a comment to describe the trick in contentcollector

This commit is contained in:
Jean-Tiare Le Bigot 2012-03-02 19:41:55 +01:00
parent edc9212ff1
commit 666bdcaaf8
3 changed files with 5 additions and 2 deletions

View file

@ -457,6 +457,10 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
}
else if (!isEmpty)
{
//It is interesting to notice that the rendering code of this part relies
//on the attributes stored in the "class" attribute of the DOM element.
//It means that whenever one wants to create a new attribute, he will
//need to put it as a class !
var styl = dom.nodeAttr(node, "style");
var cls = dom.nodeProp(node, "className");