public string renderHtmlTagAttribute(HtmlTagAttribute attr)
        {
            string res = " ";
            res += attr.getKey();
            res += "=\"";
            res += attr.getValue();
            res += "\"";

            return res;
        }
Ejemplo n.º 2
0
        public List<StrTypePair> renderHtmlTagAttribute(HtmlTagAttribute attr)
        {
            List<StrTypePair> res = new List<StrTypePair>();

            res.Add(new StrTypePair(attr.getKey(), (_isAutoTag) ? StrTypePair.StrType.AUTO_TAG_ATTR_NAME : StrTypePair.StrType.USR_TAG_ATTR_NAME));
            res.Add(new StrTypePair("=", (_isAutoTag) ? StrTypePair.StrType.AUTO_TAG_ATTR_AFFECT : StrTypePair.StrType.USR_TAG_ATTR_AFFECT));

            string value = "\"" + attr.getValue() +"\"";
            res.Add(new StrTypePair(value, (_isAutoTag) ? StrTypePair.StrType.AUTO_TAG_ATTR_VALUE : StrTypePair.StrType.USR_TAG_ATTR_VALUE));

            return res;
        }