1. element api: hasattributes

  2. processinginstruction api: hasattributes