Update HTML5.TreeBuilder.copyAttributeToElement to handle DOM 4 API.

setAttributeNode is deprecated in DOM 4; we use setAttribute() instead.

Change-Id: I8bdfb726df3780e885eaba55e4e685228cdc82e7