{"action":"created","issue":{"url":"https://api.github.com/repos/angular/universal-starter/issues/287","repository_url":"https://api.github.com/repos/angular/universal-starter","labels_url":"https://api.github.com/repos/angular/universal-starter/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/angular/universal-starter/issues/287/comments","events_url":"https://api.github.com/repos/angular/universal-starter/issues/287/events","html_url":"https://github.com/angular/universal-starter/issues/287","id":192458810,"number":287,"title":"not implemented in Parse5DomAdapter: getElementsByTagName","user":{"login":"teacii","id":4217980,"avatar_url":"https://avatars.githubusercontent.com/u/4217980?v=3","gravatar_id":"","url":"https://api.github.com/users/teacii","html_url":"https://github.com/teacii","followers_url":"https://api.github.com/users/teacii/followers","following_url":"https://api.github.com/users/teacii/following{/other_user}","gists_url":"https://api.github.com/users/teacii/gists{/gist_id}","starred_url":"https://api.github.com/users/teacii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teacii/subscriptions","organizations_url":"https://api.github.com/users/teacii/orgs","repos_url":"https://api.github.com/users/teacii/repos","events_url":"https://api.github.com/users/teacii/events{/privacy}","received_events_url":"https://api.github.com/users/teacii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-30T02:27:47Z","updated_at":"2016-12-10T07:18:52Z","closed_at":null,"body":"Hi,\r\n\r\nI may be running away with things that are under development. So please accept my apologies upfront.\r\n\r\nWhen using the included \"Meta\" service, I got following error:\r\nEXCEPTION: This method is not implemented in Parse5DomAdapter: getElementsByTagName\r\n\r\nHere my code:\r\n```\r\nexport class AboutComponent implements OnInit{\r\n  private name: MetaDefinition = {name: 'description', content: 'Yoo Hoo'};\r\n  constructor(\r\n      @Inject('req') req: any,\r\n      private _meta:Meta\r\n  ) {\r\n    // console.log('req',  req)\r\n\r\n  }\r\n\r\n  ngOnInit(){\r\n    this._meta.updateTag('meta',this.name);\r\n  }\r\n}\r\n```\r\nThank you for any assistance in advance."},"comment":{"url":"https://api.github.com/repos/angular/universal-starter/issues/comments/266184616","html_url":"https://github.com/angular/universal-starter/issues/287#issuecomment-266184616","issue_url":"https://api.github.com/repos/angular/universal-starter/issues/287","id":266184616,"user":{"login":"inzerceubytovani","id":20871545,"avatar_url":"https://avatars.githubusercontent.com/u/20871545?v=3","gravatar_id":"","url":"https://api.github.com/users/inzerceubytovani","html_url":"https://github.com/inzerceubytovani","followers_url":"https://api.github.com/users/inzerceubytovani/followers","following_url":"https://api.github.com/users/inzerceubytovani/following{/other_user}","gists_url":"https://api.github.com/users/inzerceubytovani/gists{/gist_id}","starred_url":"https://api.github.com/users/inzerceubytovani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inzerceubytovani/subscriptions","organizations_url":"https://api.github.com/users/inzerceubytovani/orgs","repos_url":"https://api.github.com/users/inzerceubytovani/repos","events_url":"https://api.github.com/users/inzerceubytovani/events{/privacy}","received_events_url":"https://api.github.com/users/inzerceubytovani/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T07:18:52Z","updated_at":"2016-12-10T07:18:52Z","body":"@john-landgrave  I figured it out how to get HEAD element with this workaround:\r\n\r\nIn __getOrCreateElement_ when you change \r\n\r\n`const head = this._dom.getElementsByTagName(this._dom.defaultDoc(), 'head')[0];` \r\n\r\ninto \r\n\r\n`const head = this._document.head;`\r\n\r\nDocument was injected in constructor:\r\n\r\n`@Inject(DOCUMENT) private _document: any`\r\n\r\nHowever this solution only append new element in __getOrCreateElement_ only append new child. Now I am trying to find out workaround how to update existing meta. \r\n\r\nAlso when you need change title, use this \r\n\r\n`this._document.title = 'my title`;"}}
{"actor":{"display_login":"inzerceubytovani"}}