#ifndef EL_DOM_SGML_SGML_H #define EL_DOM_SGML_SGML_H #include #include "dom/node.h" #include "dom/string.h" /* The flags stored in the attribute sgml node info data */ /* TODO: Other potential flags (there can be only 16) * * - interaction info for forms (diabled, readonly, maxlength) maybe tabindex, * - table layout, * - generic layout style attributes maybe giving color values an additional flag, * - meta information (rel, rev, title, alt, summary, caption, standby, lang), * - scripting hooks (onblur, ...) * - information about the referenced content (hreflang, codetype, media, type) * * Anyway the flags should of course optimally have a purpose to speed things up * by quickly making it possible to identify certain attribute groups. --jonas */ enum sgml_attribute_flags { /* The value uniquely identifies the owner */ SGML_ATTRIBUTE_IDENTIFIER = 1, /* The value contains an URI of some sort */ SGML_ATTRIBUTE_REFERENCE = 2, }; /* TODO: We also need an element flag to signal to the parser that all the * content should be skipped; possible with some ugly hacks to not use the * scanner since it could get confused. The purpose of this flag is to group * all element content in one text node. Kind of like a ``verbatim'' thing * where not parsing should be done. For HTML the