Replace readAttribute with getAttribute

`readAttribute` is a function monkey-patched by Prototype, so it won't
be available after removing Prototype. The standard function is
`getAttribute`.

Tested:
- local server
Merge pull request #1651 from zhangsu/readAttribute

Replace readAttribute with getAttribute