Пример #1
0
        override protected XmlElement CreateElement(string ns, string name, HtmlAttributes attributes, XmlElement form)
        {
            if (OnCreateElement != null)
            {
                OnCreateElement(ns, name, attributes);
            }

            if (IsDebug)
            {
                GlobalLog.Write("Stop in CreateElement", LogChannel.NOTIFY_MSG);
                waiter.WaitOne();
            }

            XmlElement rv = CreateElement(ns, name, attributes);

            //rv.setUserData("nu.validator.form-pointer", form, null); // TODO
            return(rv);
        }
Пример #2
0
        protected override Element CreateElement(string ns, string name, HtmlAttributes attributes)
        {
            if (OnCreateElement != null)
            {
                OnCreateElement(ns, name, attributes);
            }

            if (IsDebug)
            {
                GlobalLog.Write("Stop in CreateElement", LogChannel.NOTIFY_MSG);
                waiter.WaitOne();
            }

            Element rv = document.createElementNS(ns, name);

            for (int i = 0; i < attributes.Length; i++)
            {
                rv.setAttributeNS(attributes.GetURI(i), attributes.GetLocalName(i), attributes.GetValue(i));
            }
            return(rv);
        }
Пример #3
0
 /// <summary>
 /// Constructor for copying. This doesn't take another <code>StackNode</code>
 /// because in C++ the caller is reponsible for reobtaining the local names
 /// from another interner.
 /// </summary>
 internal StackNode(int flags, String ns, String name, T node, String popName, HtmlAttributes attributes)
 {
     this.flags      = flags;
     this.name       = name;
     this.popName    = popName;
     this.ns         = ns;
     this.node       = node;
     this.attributes = attributes;
     this.refcount   = 1;
 }
Пример #4
0
 public void DropAttributes()
 {
     attributes = null;
 }