store id in attr only when defined
ignore invalid anchor name
new class TagAttrs
remove debug code