fixing bug on getting contenteditable and data attributes

Signed-off-by: Kevin Nguyen <k.nguyen@thecodingmachine.com>