General XMetaL Discussion
achu April 26, 2010 at 6:37 pm
difference between RulesChecking and DOMEnforceValidApril 26, 2010 at 6:37 pmParticipants 0Replies 1Last Activity 12 years, 2 months ago
I think that both cRulesChecking and DOMEnforceValid an turn on/off rules checking.
so, is there difference between two?Derek Read April 26, 2010 at 7:51 pm
Reply to: difference between RulesChecking and DOMEnforceValidApril 26, 2010 at 7:51 pm
By default, rules checking stays on during DOM operations that modify the document. Therefore, operations that would create an invalid document are disallowed. This property returns and sets whether rules checking can be turned off in the document during DOM operations.
Perhaps this would be better stated as “This property allows RulesChecking to be temporarily suspended when DOM operations are being performed. If your DOM operations leave the document in an invalid state then RulesChecking will be turned off, or left off if RulesCheck was already turned off. If your DOM operations leave the document in a valid state then RulesChecking will be left in the state it was in prior to those DOM operations having been performed.”
This is different from you deciding up front that you will be putting the document into an invalid state, turning RulesChecking off, manipulating the document, and then deciding to turn RulesChecking back on.
- You must be logged in to reply to this topic.