General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion difference between RulesChecking and DOMEnforceValid

  • achu

    difference between RulesChecking and DOMEnforceValid

    Participants 0
    Replies 1
    Last 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?

    Reply

    Derek Read

    Reply to: difference between RulesChecking and DOMEnforceValid

    [quote=Programmer's Guide]
    DOMEnforceValid
    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.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support